package com.msb.mall.order.feign;

import com.msb.common.utils.R;
import com.msb.mall.order.vo.OrderItemSpuInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 功能描述
 *
 * @author: wulongsen@foxmail.com
 * @date: 2024年10月28日 22:42
 */
@FeignClient(name = "mall-product")
public interface ProductService {

    //需要访问的远程方法
    @GetMapping("product/brand/all")
    public R queryAllBrand();

    @RequestMapping("/product/spuinfo/getOrderItemSpuInfoBySpuId/{spuIds}")
    public List<OrderItemSpuInfoVO> getOrderItemSpuInfoBySpuId(@PathVariable("spuIds") Long[] spuIds);
}
